﻿using Microsoft.Extensions.DependencyInjection;
using dotnet2cache.Abstractions;
using dotnet2cache.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace dotnet2cache.Core
{
    public static class DTServiceCollectionExtensions
    {

        public static CacheProvider AddDotNet2Cache(this IServiceCollection services)
        {
            services.AddSingleton<IDotNetTwoCache, DotNetTwoCache>();
            var provider = new CacheProvider(services);

            return provider;
        }



    }
}
